<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block data-th-replace="/adminlte/base::base-head"></th:block>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
	<div class="wrapper">
		<th:block data-th-replace="/adminlte/base::base-navbar"></th:block>
		<th:block data-th-replace="/adminlte/base::base-main-sidebar"></th:block>
		<div class="content-wrapper">
			<th:block data-th-replace="/adminlte/base::base-content-header"></th:block>
			<section class="content">
				<div class="container-fluid">
					<div class="card">
						<div class="card-header with-border">
							<div class="row ml-1 mt-1">
								<div class="input-group">
									<div class="input-group-prepend">
										<button type="submit" class="btn btn-default"
											data-get-search="#search-token" onclick="changeThis(this)">
											<i class="fas fa-search"></i>
										</button>
									</div>
									<input id="search-token" type="text" name="search"
										class="form-control" placeholder="Search"
										autofocus="autofocus" data-get-search="#search-token"
										onkeyup="enterThis(this, changeThis)">
								</div>
							</div>
						</div>
						<div class="card-body">
							<div class="table-responsive">
								<table id="user-table"
									class="table table-bordered table-hover table-striped">
									<colgroup>
										<col width="400" />
										<col />
										<col width="200" />
									</colgroup>
									<thead>
										<tr>
											<th>用户名</th>
											<th>操作类型</th>
											<th>操作时间</th>
										</tr>
									</thead>
									<tbody>
										<tr data-th-each="log: ${logPage.data}">
											<td data-th-utext="${userUtils.getNickname(log.userId)}">用户名</td>
											<td data-th-utext="${log.type.text}">操作类型</td>
											<td data-th-utext="${LocalDateTimeUtils.format(log.createTime)}">操作时间</td>
										</tr>
									</tbody>
								</table>
							</div>
							<th:block
								data-th-replace="/adminlte/base::pageNav(${logPage},'条记录')"></th:block>
						</div>
					</div>
				</div>
			</section>
		</div>
		<th:block data-th-replace="/adminlte/base::base-footer"></th:block>
		<th:block data-th-replace="/adminlte/base::base-control-sidebar"></th:block>
	</div>
</body>
</html>